package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.Live;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 直播信息
 * @ClassName LiveInfoResponse
 *
 *
 * @Version 1.0
 **/

@Data
public class LiveInfoResponse implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 房间号
     *
     * @mbg.generated
     */
    private String room;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 用户昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 用户头像
     *
     * @mbg.generated
     */
    private String headImg;

    /**
     * 直播推流
     *
     * @mbg.generated
     */
    private String stream;

    /**
     * flv协议拉流地址
     *
     * @mbg.generated
     */
    private String pullUrlFlv;

    /**
     * hls协议拉流地址
     *
     * @mbg.generated
     */
    private String pullUrlM3u8;

    /**
     * 是否真实 0 假 1真
     *
     * @mbg.generated
     */
    private Integer isFake;

    /**
     * 标题
     *
     * @mbg.generated
     */
    private String title;

    /**
     * 封面
     *
     * @mbg.generated
     */
    private String coverImg;

    /**
     * 点赞数
     *
     * @mbg.generated
     */
    private Integer likeSum;

    /**
     * 开播状态 1 未开播 2 开播
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 热度
     *
     * @mbg.generated
     */
    private String hot;

    /**
     * 是否推荐
     *
     * @mbg.generated
     */
    private Integer isRecommend;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 主播类型
     *
     * @mbg.generated
     */
    private Integer type;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 开播时间
     *
     * @mbg.generated
     */
    private Date openTime;

    /**
     * 下播时间
     *
     * @mbg.generated
     */
    private Date closeTime;

    /**
     * 心跳时间
     *
     * @mbg.generated
     */
    private Date heartbeatTime;


    public LiveInfoResponse() {
    }

    public LiveInfoResponse(Live live) {
        BeanUtils.copyProperties(live, this);
    }
}
